package com.happy.cat.project.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.happy.cat.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 用户贵族开通日志对象 user_log_noble
 * 
 * @author verne
 * @date 2020-08-15
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName(autoResultMap = true )
@ApiModel(value="用户贵族开通日志对象", description="用户贵族开通日志对象数据")
public class UserLogNoble implements Serializable {

private static final long serialVersionUID=1L;


    /** ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    /** 贵族类型ID */
    @Excel(name = "贵族类型ID")
    @ApiModelProperty(value = "贵族类型ID")
    private Long nobleId;

    /** 猫粮值 */
    @Excel(name = "猫粮值")
    @ApiModelProperty(value = "猫粮值")
    private BigDecimal cartFood;

    /** 
购买时间 */
    @ApiModelProperty(value = "猫粮值")
    private Date createTime;

    /** 到期时间 */
    @Excel(name = "到期时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "到期时间")
    private Date expireTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户查询")
    private String userKey;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户")
    private UserAccount userAccount;
}
